<?php
        //we check if the user is logged in. If that is not the case, we will forward him to admin.php so he can login. The exacd procedure of the test is e    xplained in board.php
        session_start();
        if ($_SESSION['logd'] != 1){
                Header("Location:login.php");
        }
?>
<h1>New Message</h1>
<form name="new_message" action="broadcast_message.php" method="post">
        <p>
        <?php
                //ATTENTION! This path has to be relative to the path of file that is including new_message_form.php and not to the location of new_message_form itself
                include("contacts_dropdown.php");
        ?>
</p>
        <p>
                <label for="title" style="font-weight:bold;">Title of the Post</label><br />
                <input type="text" name="title" id="title" style="width:550px;" /><br />
        </p>
        <p>
                <label for="text" style="font-weight:bold;">The Text of your post</label><br />
                <textarea id="text" name="text" rows="20" cols="80" style="width: 550px; height: 360px; border: 1px solid #000000; padding: 5px; font-family    : Arial, sans-serif;"></textarea><br />
        </p>
        <p>
                <label for="tags" style="font-weight:bold;">Add some tags (comma separated)</label><br />
                <textarea id="tags" name="tags" rows="3" cols="20" style="width: 200px; height: 100px; border: 1px solid #000000; padding: 5px; font-family    : Arial, sans-serif;"></textarea><br />
        </p>
        <p>
                <input type="submit" name="send" />
        </p>
</form>
